Carbon


DrawThemeMenuBackground

Header: Appearance.h Carbon status: Supported

Draws a menu background.

OSStatus DrawThemeMenuBackground (
    const Rect *inMenuRect, 
    ThemeMenuType inMenuType
);
inMenuRect

A pointer to a structure of type Rect. Before calling DrawThemeMenuBackground, set the rectangle to contain the entire menu, in global coordinates.

inMenuType

A value of type ThemeMenuType. Pass a constant specifying the type of menu for which to draw a background; see “Theme Menu Type Constants” for descriptions of possible values.

function result

A result code.

DISCUSSION

The DrawThemeMenuBackground function draws a theme-compliant menu background in the specified rectangle.

VERSION NOTES

This function is available with Appearance Manager 1.0.1 and later.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)